<h1><%= link_to "Events", :action => "index" %>
 &rarr; <%=h @events.name %>
 </h1>
 
 
 <!--Show the details-->
 <div class="details">
 <dl>
 <dt>When:</dt><dd><%=h @events.name %> </dd>
 <dt>Where:</dt><dd><%=h @events.location %></dd>
 <dt>Details:</dt><dd><%=h @events.details %></dd>

 </dl>
 <!--if admin then show links-->
  <% if admin? %>
  <p class="modify">
    <%= link_to "edit", :action => "edit", :id => @events.id %>  |
    <%= link_to "destroy", { :action => "destroy", :id => @events.id },
                            :confirm => 'Are you sure?', 
                            :method  => :delete %>
  </p>
  <% end %>
</div>
